<?php

require_once BaseUtil::getModulePath("base")  .  '/forms/BaseForm.php';
require_once BaseUtil::getModulePath("promotion")  .  '/constants/PromotionConstant.php';

class CouponForm extends BaseForm {

    public function __construct ()
    {
        parent::__construct();
        $this->setAction(HttpUtil::getUrl("promotion", "suncoupontype"));


        //type
        $type = new Zend_Form_Element_Select('type');
        $type->setLabel($this->translate->_('type'));
        $type->setMultiOptions(PromotionConstant::getCouponTypeList());

                
        $this->addElements(array($type));


        $this->setElementDecorators(array(
            'ViewHelper',
            array(array('div' => 'HtmlTag'), array('tag' => 'div',"class" => "form_element")),
        ));

    }
}
